<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>modify</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script>
            window.onload=function(){
                if(<{$data.sex}>==0){
                   document.getElementsByName("sex")[1].checked=true;
                }else{
                     document.getElementsByName("sex")[0].checked=true;
                }
            }
        </script>
    </head>
    <body>
        <form>
            姓名： <input type="text" name="username" value="<{$data.username}>" /><br>
            性别：男<input type="radio" name="sex" value="1"/> 女<input type="radio" name="sex" value="0"/><br>
            <input type="submit" value="提交修改"/>
        </form>
    </body>
</html>
